#!/bin/sh
exec 2>&1
<%= render("mount_point_check.erb", cookbook: 'gitlab') %>
exec chpst -P -U <%= node['postgresql']['username'] %>:<%= node['postgresql']['group'] %> -u <%= node['postgresql']['username'] %>:<%= node['postgresql']['group'] %> /opt/gitlab/embedded/bin/postgres -D <%= File.join(node['postgresql']['dir'], "data") %>
